<template>
  <div class="container">
    <div class="">
      <ul class="company-num-list flex-box-align mb30">
        <li class="flex">
          <div class="li-top">会员人数</div>
          <div>{{info.user_count}}</div>
        </li>
        <li class="flex">
          <div class="li-top">总充值</div>
          <div>{{info.total_recharge}}</div>
        </li>
        <li class="flex">
          <div class="li-top">总购物金额</div>
          <div>{{info.total_purchase}}</div>
        </li>
        <li class="flex">
          <div class="li-top">总积分</div>
          <div>{{info.total_point}}</div>
        </li>
      </ul>
      <ul class="company-num-list flex-box-align mb30">
        <li class="flex">
          <div class="li-top">已释放积分</div>
          <div>{{info.released_point}}</div>
        </li>
        <li class="flex">
          <div class="li-top">待释放积分</div>
          <div>{{info.not_released_point}}</div>
        </li>
        <li class="flex">
          <div class="li-top">已提现</div>
          <div>{{info.total_withdraw}}</div>
        </li>
        <li class="flex">
          <div class="li-top">总手续费</div>
          <div>{{info.total_loss_val}}</div>
        </li>
      </ul>
    </div>
  </div>
</template>

<script>
let CONSTANT = require("../constant/constant.js");
let common = require("../common.js");
import TableList from "./common/my-table";
export default {
  data() {
    return {
      info:''
    };
  },
  components: {

  },
  created() {},
  mounted() {
    this.getInfo()
  },
  methods: {
    getInfo: function() {
      let url = CONSTANT.URL.STATISTIC,
        data = {};
      common.requestGetAjax(url, {}, data, res => {
         this.info = res.data;
      });
    }
  }
};
</script>

<style lang="scss">
.container {
  .company-num-list {
    li {
      cursor: pointer;
      height: 193px;
      background-color: #fff;
      box-shadow: 2px 2px 1px rgba(15, 5, 9, 0.1);
      border-left: 1px solid rgba(15, 5, 9, 0.1);
      margin-right: 1.3%;
      text-align: center;
      border-radius: 10px;
      margin-top: 25px;
      .li-top {
        height: 44px;
        font-size: 16px;
        color: #ffffff;
        line-height: 44px;
        border-top-left-radius: 10px;
        border-top-right-radius: 10px;
      }
      div:nth-child(2) {
        font-size: 40px;
        line-height: 150px;
        color: #000000;
      }
    }
    li:nth-child(1) {
      div:nth-child(1) {
        background: linear-gradient(to right, #838efe, #00e9ff);
      }
    }
    li:nth-child(2) {
      div:nth-child(1) {
        background: linear-gradient(to right, #ff5454, #ffa0a0);
      }
    }
    li:nth-child(3) {
      div:nth-child(1) {
        background: linear-gradient(to right, #d6a615, #e6d7a9);
      }
    }
    li:nth-child(4) {
      div:nth-child(1) {
        background: linear-gradient(to right, #f47721, #f8b88b);
      }
    }
    li:nth-child(5) {
      div:nth-child(1) {
        background: linear-gradient(to right, #547cff, #a0caff);
      }
    }
    li:nth-child(6) {
      div:nth-child(1) {
        background: linear-gradient(to right, #55df3e, #b6ffaa);
      }
    }
  }
  .el-table__row {
    .cell {
      button {
        margin-top: 10px;
      }
    }
    video {
      width: 100px;
      height: auto;
    }
    img.video-img {
      width: 60px;
      height: 60px;
      cursor: pointer;
      border-radius: 30px;
    }
  }
  .pagination {
    text-align: center;
    width: 80%;
    margin-top: 60px;
  }
  .el-dialog__body {
    img {
      display: block;
      margin: 0 auto;
    }
  }
  .user-num {
    color: #409eff;
    cursor: pointer;
  }
}
</style>
